//
//  InviteRuleViewController.m
//  SP2P
//
//  Created by 吴建东 on 16/6/4.
//  Copyright © 2016年 EIMS. All rights reserved.
//

#import "InviteRuleViewController.h"
#import "CommonWebViewController.h"

@interface InviteRuleViewController ()<CommonWebViewControllerDelegate>
@property (nonatomic, strong) CommonWebViewController *webView;
@end

@implementation InviteRuleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.edgesForExtendedLayout = UIRectEdgeNone;
    [self initNavBarTitle:@"邀请好友规则" andLeftItemName:@"返回" andRightItemName:@""];
    self.view.backgroundColor = [UIColor whiteColor];
    
    _webView = [[CommonWebViewController alloc] init];
    _webView.delegate = self;
    _webView.view.backgroundColor = [UIColor clearColor];
    _webView.view.frame = RECTMAKE(0, 10, MSWIDTH, self.view.frame.size.height-10);
    _webView.requestUrl = [NSString stringWithFormat:@"%@%@",Baseurl,@"/app/inviterule"];
    
    
    [self.view addSubview:_webView.view];
}

- (void)back {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)backAction {
    [self back];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
